package cn.lysj.framework.common.utils.casting;

import java.util.HashMap;
import java.util.Map;

/**
 * @Author: ZhangWenJian
 * @Create: 2018/11/19--11:21
 * @Description:
 */
public class MapToArray<T> {

//    public static String[] mapToArray(Map<String,String> object) {
//        String result[] = new String[object.size()];
//        Integer begin = 0;
//        for(Map.Entry<String,String> entry : object.entrySet()){
//            result[begin] = entry.getValue();
//            begin++;
//        }
//        return result;
//    }


    public static  Object[] mapToArray(Map<String, Object > test){
        Object[] asd = new Object[test.size()];
        Integer begin = 0;
        for(Map.Entry<String,Object> entry : test.entrySet()){
            asd[begin] = entry.getValue();
            begin++;
        }
        return asd;
    }

}
